package 工厂模式;

public class Main {
    public static void main(String[] args) {
        Factory factory = new Factory();
        Fly bird = factory.produce("bird");
        Fly flight = factory.produce("flight");
        bird.fly();
        flight.fly();
    }
}
